package base.design.test5Prototype.shallowClone;

/**
 *浅克隆，调用object的克隆方法
 */
public  class ConcretePrototype implements Cloneable {
    public ConcretePrototype() {
        System.out.println("构造方法被调用。。。。。。");
    }

    @Override
    protected ConcretePrototype clone() throws CloneNotSupportedException {
        return (ConcretePrototype)super.clone();
    }
}
